
if(MSVC)
	set(CPACK_GENERATOR "ZIP")
elseif(APPLE)
	set(CPACK_GENERATOR "TGZ")
else()
	set(CPACK_GENERATOR "DEB;RPM")
endif(MSVC)

SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "rexgen - a tool to create words based on regular expressions")
SET(CPACK_PACKAGE_VENDOR "Jan Starke <rexgen@outofbed.org>")
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER ${CPACK_PACKAGE_VENDOR})
#SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/ReadMe.txt")
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/gpl.txt")
SET(CPACK_PACKAGE_VERSION_MAJOR ${librexgen_major})
SET(CPACK_PACKAGE_VERSION_MINOR ${librexgen_minor})
SET(CPACK_PACKAGE_VERSION_PATCH ${librexgen_build})
SET(CPACK_OUTPUT_FILE_PREFIX "${CMAKE_CURRENT_SOURCE_DIR}/../bin/${CMAKE_SYSTEM_NAME}")
SET(CPACK_SOURCE_GENERATOR "TGZ")
SET(CPACK_SOURCE_IGNORE_FILES "^${PROJECT_SOURCE_DIR}/build/" ".*\\\\.sh")
SET(CPACK_INCLUDE_TOPLEVEL_DIRECTORY 0)
include(CPack)